import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import IndexView from "@/views/index/IndexView.vue";
import MessageView from "@/views/message/MessageView.vue";
import MyView from "@/views/my/MyView.vue";
import HealthView from "@/views/index/health/HealthView.vue";
import HealthDetailsView from "@/views/index/health/HealthDetailsView.vue";
import ChronicNursingView from "@/views/index/lentivirus/ChronicNursingView.vue";
import LentivirusView from "@/views/index/lentivirus/LentivirusView.vue";
import PharmacyView from "@/views/index/pharmacy/PharmacyView.vue";
import remindView from "@/views/index/remind/remindView.vue";
import LoginView from "@/views/my/login/LoginView.vue";
import Login2View from "@/views/my/login/Login2View.vue";
import WangjimimaView from "@/views/my/login/WangjimimaView.vue";
import UpdatePasswordView from "@/views/my/login/UpdatePasswordView.vue";
import RegisterView from "@/views/my/login/RegisterView.vue";
import remindAddView from "@/views/index/remind/remind-add/remindAddView.vue";
import remindDelView from "@/views/index/remind/redmind-delandupdate/remindDelView.vue";
import SettingsView from "@/views/my/settings/SettingsView.vue";
import UpdatePhoneView from "@/views/my/settings/updatePhone/UpdatePhoneView.vue";
import UpdatePasswordView2 from "@/views/my/settings/updatePassword/UpdatePasswordView2.vue";
import MyHealthRecordView from "@/views/my/myHealthRecord/MyHealthRecordView.vue";
import mapView from "@/views/index/map/mapView.vue";
import MyDoctorTeamView from "@/views/my/mydoctorteam/MyDoctorTeamView.vue";
import DoctorHomepageView from "@/views/my/mydoctorteam/DoctorHomepageView.vue";
import ApplyFor from "@/views/my/mydoctorteam/ApplyFor.vue";
import ResultView from "@/views/my/mydoctorteam/ResultView.vue";
import ServiceDetailsView from "@/views/my/mydoctorteam/ServiceDetailsView.vue";
import DrugInfoView from "@/views/index/pharmacy/DrugInfoView.vue";
import collectView from "@/views/my/collect/CollectView.vue";
import HealthMonitorView from "@/views/index/monitor/HealthMonitorView.vue";
import MonitorIndexView from "@/views/index/monitor/MonitorIndexView.vue";
import SugarMonitorView from "@/views/index/monitor/SugarMonitorView.vue";
import PressureView from "@/views/index/monitor/PressureView.vue";
import HeartView from "@/views/index/monitor/HeartView.vue";

import ImproveInformationView from "@/views/my/improveInformation/ImproveInformationView.vue";
import InstitutionView from "@/views/index/institution/InstitutionView.vue";

import OldServicePackage from "@/views/my/myservicepackage/OldServicePackage.vue";
import FollowServiceRecords from "@/views/my/myservicepackage/FollowServiceRecords.vue";
import ServiceDetails from "@/views/my/myservicepackage/ServiceDetails.vue";
import RegionView from "@/views/index/region/RegionView.vue";
import SigningView from "@/views/index/signing/SigningView.vue";

import ServiceEvaluationView from "@/views/my/myservicepackage/ServiceEvaluationView.vue";
import ServiceDetail2 from "@/views/my/myservicepackage/ServiceDetail2.vue";
import ServiceDetail3 from "@/views/my/myservicepackage/serviceDetail3.vue";
import AgencyRecordView from "@/views/my/agency/AgencyRecordView.vue";
import ConsultationView from "@/views/message/Consultation/ConsultationView.vue";
import ServiceMessagesView from "@/views/message/Service Messages/ServiceMessagesView.vue";
import SystemMessagesView from "@/views/message/System Messages/SystemMessagesView.vue";
import ChatPageView from "@/views/message/Consultation/Chat Page/ChatPageView.vue";
import ChatSettingsView from "@/views/message/Consultation/Chat Settings/ChatSettingsView.vue";
import SetRemarkView from "@/views/message/Consultation/Set remark/SetRemarkView.vue";
import ServicepackageView from "@/views/index/servicepackage/ServicepackageView.vue";
import DoctorTeamView from "@/views/index/doctorteam/DoctorTeamView.vue";
import NearbyMechanismView from "@/views/index/nearby/NearbyMechanismView.vue";
import NearbyRegionView from "@/views/index/nearby/NearbyRegionView.vue";
import InputView from "@/views/index/nearby/InputView.vue";
import IndexRegionView from "@/views/index/IndexRegionView.vue";
import InputTDView from "@/views/index/nearby/InputTDView.vue";
import NearbyMechanismTDView from "@/views/index/nearby/NearbyMechanismTDView.vue";
import IndexHealthRecordView from "@/views/index/IndexHealthRecordView.vue";
import IndexHealthFileView from "@/views/index/IndexHealthFileView.vue";

Vue.use(VueRouter)

const routes = [

  {
    path: '/institution',
    name: 'institution',
    component: InstitutionView
  },


    //地图
  //心率检测
  {
    path: '/heart',
    name: 'heart',
    component: HeartView
  },

  //血压检测
  {
    path: '/pressure',
    name: 'pressure',
    component: PressureView
  },

  //血糖检测
  {
    path: '/sugarMonitor',
    name: 'sugarMonitor',
    component: SugarMonitorView
  },

  //体重检测
  {
    path: '/monitor',
    name: 'monitor',
    component: HealthMonitorView
  },

  //健康检测
  {
    path: '/healthIndex',
    name: 'healthIndex',
    component: MonitorIndexView
  },
  {
    path: '/region',
    name: 'region',
    component: RegionView
  },
  //附近机构
  {
    path: '/signing',
    name: 'signing',
    component: SigningView
  },

  //我的收藏
  {
    path: '/collect',
    name: 'collect',
    component: collectView
  },



  //药品详情
  {
    path: '/drugInfo',
    name: 'drugInfo',
    component: DrugInfoView
  },


  //用药查询
  {
    path: '/pharmacy',
    name: 'pharmacy',
    component: PharmacyView
  },



  //慢病护理详情
  {
    path: '/chronicNursing',
    name: 'chronicNursing',
    component: ChronicNursingView
  },
  //慢病护理
  {
    path: '/lentivirus',
    name: 'lentivirus',
    component: LentivirusView
  },

  //健康详情
  {
    path: '/healthDetails',
    name: 'healthDetails',
    component: HealthDetailsView
  },

    //健康头条
  {
    path: '/health',
    name: 'health',
    component: HealthView
  },
  //   用药提醒
  {
    path: '/remind',
    name: 'remind',
    component: remindView
  },
  //   用要提醒的添加
  {
    path: '/remindAdd',
    name: 'remindAdd',
    component: remindAddView
  },
  {
    path: '/remindDel',
    name: 'remindDel',
    component: remindDelView
  },

  //   系统消息
  {
    path: '/SystemMessages',
    name: 'SystemMessages',
    component: SystemMessagesView
  },
  {
    path: '/doctorTeam1',
    name: 'doctorTeam1',
    component: DoctorTeamView
  },

  //   服务消息
  {
    path: '/ServiceMessages',
    name: 'ServiceMessages',
    component: ServiceMessagesView
  },

  //   设置内助
  {
    path: '/SetRemark',
    name: 'SetRemark',
    component: SetRemarkView
  },

  //   聊天设置
  {
    path: '/ChatSettings',
    name: 'ChatSettings',
    component: ChatSettingsView
  },


  //   Ai聊天页面
  {
    path: '/ChatPage',
    name: 'ChatPage',
    component: ChatPageView
  },

  //   聊天列表
  {
    path: '/Consultation',
    name: 'Consultation',
    component: ConsultationView
  },

  {
    path: '/home',
    name: 'home',
    component: HomeView
  },
  {
    path: '/myDoctor',
    name: 'myDoctor',
    component: MyDoctorTeamView
  },
  {
    path: '/result',
    name: 'result',
    component: ResultView
  },
  {
    path: '/serviceDetails',
    name: 'serviceDetails',
    component: ServiceDetailsView
  },
  {
    path: '/apply',
    name: 'apply',
    component: ApplyFor
  },
  {
    path: '/doctorHomepage',
    name: 'doctorHomepage',
    component: DoctorHomepageView
  },
  {
    path: '/',
    name: 'index',
    component: IndexView
  },
  {
    path: '/message',
    name: 'message',
    component: MessageView
  },
  {
    path: '/my',
    name: 'my',
    component: MyView
  },
  {
    path: '/login',
    name: 'login',
    component: LoginView
  },
  {
    path: '/login2',
    name: 'login2',
    component: Login2View
  },
  {
    path: '/wangjimima',
    name: 'wangjimima',
    component: WangjimimaView
  },
  {
    path: '/map',
    name: 'map',
    component: mapView
  },
  {
    path: '/updatePassword',
    name: 'updatePassword',
    component: UpdatePasswordView
  },
  {
    path: '/register',
    name: 'register',
    component: RegisterView
  },
  {
    path: '/settings',
    name: 'settings',
    component: SettingsView
  },
  {
    path: '/updatePhone',
    name: 'updatePhone',
    component: UpdatePhoneView
  },
  {
    path: '/updatePassword2',
    name: 'updatePassword2',
    component: UpdatePasswordView2
  },
  {
    path: '/myHealthRecord',
    name: 'myHealthRecord',
    component: MyHealthRecordView
  },
  {
    path: '/improveInformation',
    name: 'improveInformation',
    component: ImproveInformationView
  },
  {
    path: '/agencyRecord',
    name: 'agencyRecord',
    component: AgencyRecordView
  },
  {
    path: '/doctorHomepage',
    name: 'doctorHomepage',
    component: DoctorHomepageView
  },
  {
    path: '/apply',
    name: 'apply',
    component: ApplyFor
  },
  {
    path: '/myDoctor',
    name: 'myDoctor',
    component: MyDoctorTeamView
  },
  {
    path: '/indexHealthRecord',
    name: 'indexHealthRecord',
    component: IndexHealthRecordView
  },
  {
    path: '/indexHealthFile',
    name: 'indexHealthFile',
    component: IndexHealthFileView
  },
  {
    path: '/result',
    name: 'result',
    component: ResultView
  },
  {
    path: '/serviceDetails',
    name: 'serviceDetails',
    component: ServiceDetailsView
  },
  {
    path: '/doctorTeam1',
    name: 'doctorTeam1',
    component: DoctorTeamView
  },
  //老年服务包详情
  {
    path: '/oldService',
    name: 'oldService',
    component: OldServicePackage
  },
  //随访服务记录
  {
    path: '/followService',
    name: 'followService',
    component: FollowServiceRecords
  },
  //服务详情
  {
    path: '/serviceDetail1',
    name: 'serviceDetail1',
    component: ServiceDetails
  },
  //服务评价
  {
    path: '/ServiceEvaluation',
    name: 'ServiceEvaluation',
    component: ServiceEvaluationView
  },
  //服务详情2
  {
    path: '/serviceDetail2',
    name: 'serviceDetail2',
    component: ServiceDetail2
  },
  //服务详情3
  {
    path: '/serviceDetail3',
    name: 'serviceDetail3',
    component: ServiceDetail3
  },
  //服务包
  {
    path: '/servicePackage1',
    name: 'servicePackage1',
    component: ServicepackageView
  },
    // 附近机构
  {
    path: '/nearbyMechanism',
    name: 'nearbyMechanism',
    component: NearbyMechanismView
  },
  {
    path: '/nearbyMechanismtd',
    name: 'nearbyMechanismtd',
    component: NearbyMechanismTDView
  },
  {
    path: '/nearbyRegion',
    name: 'nearbyRegion',
    component :NearbyRegionView
  },
  {
    path: '/input',
    name: 'input',
    component: InputView
  },
  {
    path: '/inputtd',
    name: 'inputtd',
    component: InputTDView
  },
  {
    path: '/indexRegion',
    name: 'indexRegion',
    component: IndexRegionView
  },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
